[ToC] [Up] [Back] [Next] ... [Book Plug] The Information Commons
.................... Introduction to HTML

4.7 HR -- Horizontal Ruled Line

The HR element is used to draw a horizontal dividing line completely across the screen. This can be to logically separate blocks of text, or to separate icon lists from the body of the text.

The HR element is empty (you don't need a </HR>). Netscape extensions are discussed at the bottom of the page.

4.7.1 Example of HR

The following shows an example of the use of <HR> and the resulting rendering (on your browser).
The following document is scanned from the back of 
a cereal box.  To see the scanned image, press the
icon at the bottom of the text ....
<HR>
<H1> MIGHTY CHOKEE-OS! </H1>
The cereal of chocolate deprived kiddies everywhere!
<p> Aren't you lucky your parents love you enough
to buy you CHOCKEE-OS!
<p> Remember to ask Mom and Dad for NEW SUPER 
CHOCKEE-OS, now with Nicotine!!!

This is rendered as:

The following document is scanned from the back of a cereal box. To see the scanned image, press the icon at the bottom of the text ....


MIGHTY CHOKEE-OS!

The cereal of chocolate deprived kiddies everywhere!

Aren't you lucky your parents love you enough to buy you CHOCKEE-OS!

Remember to ask Mom and Dad for NEW SUPER CHOCKEE-OS, now with Nicotine!!!


4.7.2 Netscape Attribute Extensions

Netscape supports four attribute extensions to the HR element. These are: Here are some examples:
<hr size=4 width=80%>
<hr size=10 width=40>
<hr size=10 width=40 align="left">
<hr size=10 width=40 align="left" noshade>
<hr size = 5 width=20% align="right">
Which are rendered as:




You will see nothing special unless your browser supports these Netscape attributes.
[ToC] [Up] [Back] [Next] ... [Book Plug] .................... Introduction to HTML

© Ian Graham 1994-1995 Page Last Updated: 4 December 1995